package com.ty.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ty.entity.BookTypeEntity;
import org.apache.ibatis.annotations.*;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create : 2024/1/9 15:19
 */
public interface BookTypeMapper extends BaseMapper<BookTypeEntity> {
    @Select("select * from periodical_type_tb where id =#{id}")
    BookTypeEntity selectByTypeId(Integer id);
    @Select("select * from periodical_type_tb where name =#{name}")
    BookTypeEntity selectByTypeName(String name);
}
